export default {
  "panels": [{
    "index": 0,
    "name": 1,
    "height": 140,
    "width": 240,
    "paperHeader": 109,
    "paperFooter": 390,
    "printElements": [{
      "options": {
        "left": 40,
        "top": 18,
        "height": 34.5,
        "width": 540,
        "title": "物料领用单",
        "right": 594,
        "bottom": 23.25,
        "vCenter": 297,
        "hCenter": 6,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 21.75,
        "fontWeight": "600",
        "textAlign": "center",
        "textContentVerticalAlign": "middle",
        "qrCodeLevel": 0
      },
      "printElementType": {
        "title": "这是更新后的元素",
        "type": "text"
      }
    }, {
      "options": {
        "left": 200,
        "top": 55.5,
        "height": 16.5,
        "width": 178.5,
        "title": "用途",
        "right": 373.5,
        "bottom": 51,
        "vCenter": 284.25,
        "hCenter": 42.75,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "field":"vnote",
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "这是更新后的元素",
        "type": "text"
      }
    }, {
      "options": {
        "left": 390.5,
        "top": 55.5,
        "height": 16.5,
        "width": 135,
        "title": "领料单号",
        "field":"vbillcode",
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "right": 586.5,
        "bottom": 51,
        "vCenter": 486,
        "hCenter": 42.75,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "这是更新后的元素",
        "type": "text"
      }
    }, {
      "options": {
        "left": 12.5,
        "top": 55.5,
        "height": 16.5,
        "width": 177,
        "title": "领用部门",
        "right": 126.75,
        "bottom": 51.75,
        "vCenter": 66.75,
        "hCenter": 43.5,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "field":"cotherdptvidName",
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "这是更新后的元素",
        "type": "text"
      }
    }, {
      "options": {
        "left": 12.5,
        "top": 73,
        "height": 16.5,
        "width": 57,
        "title": "生产线类别：",
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "这是更新后的元素",
        "type": "text"
      }
    }, {
      "options": {
        "left": 112.5,
        "top": 76.5,
        "height": 10,
        "width": 10,
        "coordinateSync": false,
        "widthHeightSync": false
      },
      "printElementType": {
        "title": "矩形",
        "type": "rect"
      }
    }, {
      "options": {
        "left": 76,
        "top": 76.5,
        "height": 9.75,
        "width": 33,
        "title": "商业化",
        "right": 225,
        "bottom": 68.25,
        "vCenter": 165,
        "hCenter": 63.375,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "这是更新后的元素",
        "type": "text"
      }
    }, {
      "options": {
        "left": 123.5,
        "top": 76.5,
        "height": 9.75,
        "width": 42,
        "title": "非商业化",
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "这是更新后的元素",
        "type": "text"
      }
    }, {
      "options": {
        "left": 167.5,
        "top": 76.5,
        "height": 10,
        "width": 10,
        "coordinateSync": false,
        "widthHeightSync": false
      },
      "printElementType": {
        "title": "矩形",
        "type": "rect"
      }
    }, {
      "options": {
        "left": 63.5,
        "top": 76.5,
        "height": 10,
        "width": 10,
        "coordinateSync": false,
        "widthHeightSync": false
      },
      "printElementType": {
        "title": "矩形",
        "type": "rect"
      }
    }, {
      "options": {
        "left": 180.5,
        "top": 76.5,
        "height": 9.75,
        "width": 120,
        "title": "其他",
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0
      },
      "printElementType": {
        "title": "这是更新后的元素",
        "type": "text"
      }
    },
    {
      "options": {
        "left": 12.5,
        "top": 91.5,
        "height": 16.5,
        "width": 72,
        "title": "车间洁净区等级:",
        "right": 127.5,
        "bottom": 87,
        "vCenter": 67.5,
        "hCenter": 82.125,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "",
        "type": "text"
      }
    },
    {
      "options": {
        "left": 81,
        "top": 94.5,
        "height": 10,
        "width": 10,
        "coordinateSync": false,
        "widthHeightSync": false
      },
      "printElementType": {
        "title": "矩形",
        "type": "rect"
      }
    },
    {
      "options": {
        "left": 93,
        "top": 91.5,
        "height": 16.5,
        "width": 14,
        "title": "A",
        "right": 127.5,
        "bottom": 87,
        "vCenter": 67.5,
        "hCenter": 82.125,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "",
        "type": "text"
      }
    },
    {
      "options": {
        "left": 103,
        "top": 94.5,
        "height": 10,
        "width": 10,
        "coordinateSync": false,
        "widthHeightSync": false
      },
      "printElementType": {
        "title": "矩形",
        "type": "rect"
      }
    },
    {
      "options": {
        "left": 115,
        "top": 91.5,
        "height": 16.5,
        "width": 14,
        "title": "B",
        "right": 127.5,
        "bottom": 87,
        "vCenter": 67.5,
        "hCenter": 82.125,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "",
        "type": "text"
      }
    },
    {
      "options": {
        "left": 125,
        "top": 94.5,
        "height": 10,
        "width": 10,
        "coordinateSync": false,
        "widthHeightSync": false
      },
      "printElementType": {
        "title": "矩形",
        "type": "rect"
      }
    },
    {
      "options": {
        "left": 137,
        "top": 91.5,
        "height": 16.5,
        "width": 14,
        "title": "C",
        "right": 127.5,
        "bottom": 87,
        "vCenter": 67.5,
        "hCenter": 82.125,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "",
        "type": "text"
      }
    },
    {
      "options": {
        "left": 148,
        "top": 94.5,
        "height": 10,
        "width": 10,
        "coordinateSync": false,
        "widthHeightSync": false
      },
      "printElementType": {
        "title": "矩形",
        "type": "rect"
      }
    },
    {
      "options": {
        "left": 160,
        "top": 91.5,
        "height": 16.5,
        "width": 14,
        "title": "D",
        "right": 127.5,
        "bottom": 87,
        "vCenter": 67.5,
        "hCenter": 82.125,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "",
        "type": "text"
      }
    },
    {
      "options": {
        "left": 168,
        "top": 94.5,
        "height": 10,
        "width": 10,
        "coordinateSync": false,
        "widthHeightSync": false
      },
      "printElementType": {
        "title": "矩形",
        "type": "rect"
      }
    },
    {
      "options": {
        "left": 180,
        "top": 91.5,
        "height": 16.5,
        "width": 29,
        "title": "其他:",
        "right": 127.5,
        "bottom": 87,
        "vCenter": 67.5,
        "hCenter": 82.125,
        "coordinateSync": false,
        "widthHeightSync": false,
        "fontSize": 9,
        "qrCodeLevel": 0,
        "textContentVerticalAlign": "middle",
      },
      "printElementType": {
        "title": "",
        "type": "text"
      }
    },
    // {
    //   "options": {
    //     "left": 95,
    //     "top": 90,
    //     "height": 16.5,
    //     "width": 126,
    //     "title": "A       B       C        D",
    //     "right": 210,
    //     "bottom": 85.5,
    //     "vCenter": 150,
    //     "hCenter": 77.25,
    //     "coordinateSync": false,
    //     "widthHeightSync": false,
    //     "fontSize": 9,
    //     "letterSpacing": 12,
    //     "qrCodeLevel": 0
    //   },
    //   "printElementType": {
    //     "title": "这是更新后的元素",
    //     "type": "text"
    //   }
    // }, {
    //   "options": {
    //     "left": 221,
    //     "top": 90,
    //     "height": 16.5,
    //     "width": 120,
    //     "title": "其他",
    //     "right": 344.25,
    //     "bottom": 85.5,
    //     "vCenter": 284.25,
    //     "hCenter": 77.25,
    //     "coordinateSync": false,
    //     "widthHeightSync": false,
    //     "fontSize": 9,
    //     "qrCodeLevel": 0
    //   },
    //   "printElementType": {
    //     "title": "这是更新后的元素",
    //     "type": "text"
    //   }
    // },
    {
      "options": {
        "left": 11,
        "top": 113,
        "height": 36,
        "width": 560,
        "right": 556,
        "bottom": 120.75,
        "vCenter": 281,
        "hCenter": 102.75,
        "fields": [{
            "text": "物料代码",
            "field": "cmaterialoidCode"
          },
          {
            "text": "物料名称",
            "field": "cmaterialoidName"
          },
          {
            "text": "规格",
            "field": "materialspec"
          },
          {
            "text": "单位",
            "field": "cunitidName"
          },
          {
            "text": "需求量",
            "field": "xunum"
          },
          {
            "text": "发放批号",
            "field": "vbatchcode"
          },
          {
            "text": "实发数量",
          },
          {
            "text": "有效期至",
            "field": "dvalidate"
          },
          {
            "text": "复验期至",
            "field": "vbdef48"
          },
          {
            "text": "物料属性",
            "field": "def9"
          },
          {
            "text": "备注",
            "field": "vnotebody"
          }
        ],
        "field": "table",
        "tableHeaderRepeat": "page",
        "tableFooterRepeat":"page",
        "tableBorder": "noBorder",
        "tableFooterBorder": "noBorder",
        "tableFooterCellBorder": "noBorder",
        "tableBodyRowHeight": 30,//表体行高
        "tableHeaderRowHeight":24,//表头行高
        footerFormatter: function(options, rows, data, currentPageGridRowsData) {
          return `<tr style="height:40px">
                      <td>制单人:</td>
                      <td style="padding:0 10px;line-height:20px" colspan="2"></td>
                      <td>批准人:</td>
                      <td style="padding:0 10px;line-height:20px" colspan="2"></td>
                      <td>发料人:</td>
                      <td style="padding:0 10px;line-height:20px" colspan="2"></td>
                      <td>领料人:</td>
                      <td style="padding:0 10px;line-height:20px" colspan="2"></td>
                  </tr>
                  `;
        },
        "columns": [
          [{
              "title": "物料代码",
              "field": "cmaterialoidCode",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center"
            },
            {
              "title": "物料名称",
              "field": "cmaterialoidName",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center",
              "width":150
            },
            {
              "title": "规格",
              "field": "materialspec",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center"
            },
            {
              "title": "单位",
              "field": "cunitidName",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center"
            },
            {
              "title": "需求量",
              "field": "xunum",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center"
            },
            {
              "title": "发放批号",
              "field": "vbatchcode",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center"
            },{
              "title": "实发数量",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center"
            },
            {
              "title": "有效期至",
              "field": "dvalidate",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center",
              "width":130
            },
            {
              "title": "复验期至",
              "field": "vbdef48",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center",
              "width":130
            },
            {
              "title": "物料属性",
              "field": "def9",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center"
            },
            {
              "title": "备注",
              "checked": true,
              "fixed": false,
              "rowspan": 1,
              "colspan": 1,
              "align": "center",
              "field":"vnotebody"
            },
          ]
        ],
      },
      "printElementType": {
        "title": "空白表格",
        "type": "table",
        "editable": true,
        "columnDisplayEditable": true,
        "columnDisplayIndexEditable": true,
        "columnTitleEditable": true,
        "columnResizable": true,
        "columnAlignEditable": true,
        "isEnableEditField": true,
        "isEnableContextMenu": true,
        "isEnableInsertRow": true,
        "isEnableDeleteRow": true,
        "isEnableInsertColumn": true,
        "isEnableDeleteColumn": true,
        "isEnableMergeCell": true
      }
    },
    // {
    //   "options": {
    //     "left": 165.5,
    //     "top": 154.5,
    //     "height": 16.5,
    //     "width": 120,
    //     "title": "批准人：",
    //     "coordinateSync": false,
    //     "widthHeightSync": false,
    //     "fontSize": 9,
    //     "textContentVerticalAlign": "middle",
    //     "qrCodeLevel": 0
    //   },
    //   "printElementType": {
    //     "title": "这是更新后的元素",
    //     "type": "text"
    //   }
    // },
    // {
    //   "options": {
    //     "left": 300.5,
    //     "top": 154.5,
    //     "height": 16.5,
    //     "width": 120,
    //     "title": "发料人：",
    //     "right": 415.5,
    //     "bottom": 139.5,
    //     "vCenter": 355.5,
    //     "hCenter": 134.625,
    //     "coordinateSync": false,
    //     "widthHeightSync": false,
    //     "fontSize": 9,
    //     "textContentVerticalAlign": "middle",
    //     "qrCodeLevel": 0
    //   },
    //   "printElementType": {
    //     "title": "这是更新后的元素",
    //     "type": "text"
    //   }
    // },
    // {
    //   "options": {
    //     "left": 440,
    //     "top": 154.5,
    //     "height": 16.5,
    //     "width": 120,
    //     "title": "领料人：",
    //     "coordinateSync": false,
    //     "widthHeightSync": false,
    //     "fontSize": 9,
    //     "textContentVerticalAlign": "middle",
    //     "qrCodeLevel": 0
    //   },
    //   "printElementType": {
    //     "title": "这是更新后的元素",
    //     "type": "text"
    //   }
    // },
    // {
    //   "options": {
    //     "left": 18.5,
    //     "top": 154.5,
    //     "height": 16.5,
    //     "width": 120,
    //     "title": "制单人：",
    //     "right": 133.5,
    //     "bottom": 139.5,
    //     "vCenter": 73.5,
    //     "hCenter": 134.625,
    //     "coordinateSync": false,
    //     "widthHeightSync": false,
    //     "fontSize": 9,
    //     "textContentVerticalAlign": "middle",
    //     "qrCodeLevel": 0
    //   },
    //   "printElementType": {
    //     "title": "这是更新后的元素",
    //     "type": "text"
    //   }
    // },
    ],
    "paperNumberLeft": 565.5,
    "paperNumberTop": 397,
    "paperNumberContinue": true,
    "paperNumberDisabled": true,
    "watermarkOptions": {},
    "panelLayoutOptions": {}
  }]
}
